<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head><title>แนะนำ THAI PE</title>

<meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body>
<div name="indexx">&nbsp;&nbsp; <br>
</div>
<a name="head1"></a><h2><span >โปรแกรมนี้ คือ
Thai's HTML Application Idea Programming Environtment (THAI PE)</span></h2>

<p><span >&nbsp;&nbsp;&nbsp; Thai's HTML
Application Idea Programming Environtment (THAI PE) เป็น browser กึ่ง
interpreter สำหรับโปรแกรม ที่เขียนผสมกันระหว่างภาษา HTML, Javascript,
Python เป็นต้น โดยใช้นามสกุลไฟล์ สำหรับแพลตฟอร์ม
ที่อำนวยให้ท่านเขียนโปรแกรมในรูปแบบ HTML ผสม JavaScript ว่า htma (HTML
Application).<br>
<br>
<br>
&nbsp;&nbsp;&nbsp; ในอนาคต มีแนวทางจะจัดทำ Thai's HTML Application Idea
Pythonism Programming Environtment (ThaiPy PE)
โดยเป็นแพลตฟอร์มที่อำนวยให้ท่านเขียนโปรแกรมในรูปแบบ HTML ผสม Clonning
Python JavaScript.<br>
<br>
&nbsp;&nbsp;&nbsp; Thai PE และ ThaiPy PE เหมาะสำหรับโปรแกรมขนาดเล็ก
ที่ต้องการ UI เขียนง่าย (แบบภาษา html) แต่ใช้ความสามารถพิเศษของ Python
ได้ไม่จำกัด เช่น เขียนไฟล์, ติดต่อ Database, รันโปรแกรม เป็นต้น.<br>
<br>
</span></p>
<div style="text-align: center;"><span style="font-weight: bold;">----</span><br>
<span style="font-weight: bold;"></span></div>
<p><span ><br>
&nbsp;&nbsp;&nbsp; Thai's HTML Application Idea Programming Environment
(THAI PE) is a half browser, half interpreter for running any
application written in HTML, JavaScript, Python. We call applications
running under THAIPE as htma (HTML Application)<br>
<br>
&nbsp;&nbsp;&nbsp; We're planning to create Thai's HTML Application
Idea Python Clonning Programming Environtment (THAIThon CPE) for
writing applications in HTML and Python<br>
<br>
&nbsp;&nbsp;&nbsp; Both THAIPE and THAIThon CPE are designed for small
applications with easy-to-develop UI (in HTML), and can use almost all
Python capabilites (eg. File I/O, DB Connection, External application
execution)</span><br>
</p>


<a name="head2"></a><h2>เหตุผลที่ควรใช้ THAIPE เขียนโปรแกรม<br>
</h2>

<ul><ul ><li>HTAs ใช้ได้เฉพาะบน Windows เท่านั้น แต่ THAIPE ใช้ได้เกือบทุกระบบปฏิบัติการ เพราะอยู่บนสภาพแวดล้อมของ Python.</li><li>UI แบบ HTML นั้นมีข้อดีหลายประการ เช่น...</li>
    <ul>
      <li>โปรแกรมเมอร์ส่วนใหญ่จะคุ้นเคยดี.</li>
      <li>เขียนง่าย มีโปรแกรมช่วยหลากหลาย.</li>
      <li>มี Library ช่วยในการออกแบบมากมาย เช่น jQuery เป็นต้น (jQuery
เป็น default library ของ THAIPE สามารถใช้งานผ่านตัวแปร $ และ jQuery
ได้ทันที).</li>
      <li>ตัวอย่าง มีทุก page ใน internet.</li>
    </ul>
<li>python เป็นภาษาโปรแกรมแบบ open source จึงมี library ดีๆ ตัวอย่างเด็ดๆ มากมาย.</li><li>browser
ปกติ ไม่สามารถทำงานบางอย่างที่ python ทำได้ (เช่น เขียนไฟล์, ติดต่อ
กatabase, รันโปรแกรม เป็นต้น) หรือ แม้ทำได้
ก็ต้องคอยกดยินยอมของระบบรักษาความปลอดภัยใน Browser แต่ THAIPE
หาได้เป็นเช่นนั้นไม่.</li><li>Environtment ของ THAIPE นั้น
มีความสามารถของ Browser และโปรแกรมทั่วไปอยู่ในตัว ไม่ต้องเขียนใหม่ หรือ
หา library เพิ่มเติมอีก (เช่น คัดลอก ตัด วาง ซูม ไปหน้า ย้อนหลัง ปริ้น
เป็นต้น).</li><li>มี shotcut สำหรับความสามารถบางอย่าง เช่น การคัดลอก ตัด วาง เป็นต้น ในตัว เช่นกัน.</li><li>ฯลฯ</li></ul></ul>

<a name="head3"></a><h2>สำหรับนักพัฒนา</h2><ul><li>ใช้<span class="Apple-converted-space">&nbsp;</span><tt style="font-size: 13px;">py(PythonCodeString)</tt><span class="Apple-converted-space">&nbsp;</span>สำหรับสั่งงานเป็นภาษา python.</li><blockquote style="max-width: 65em;"><tt style="font-size: 13px;">py('print 1')</tt></blockquote><li>สั่งให้แสดงเลข 1 บน Command Prompt ของ THAIPE.</li><li>การเรียกใช้ตัวแปรใน python หรือประกาศตัวแปร ต้องใช้<span class="Apple-converted-space">&nbsp;</span><tt style="font-size: 13px;">self.&lt;ชื่อตัวแปร&gt;</tt><span class="Apple-converted-space">&nbsp;</span>นำเสมอ.</li><blockquote style="max-width: 65em;"><tt style="font-size: 13px;">py('self.text=open("test.html").read()') // สั่งให้ตัวแปร self.file ในไพธอน รับตัวหนังสือใน file ชื่อ test.html.</tt></blockquote><li>การรับค่าคืนจากตัวแปรในไพธอน ใช้ฟังก์ชั้น<span class="Apple-converted-space">&nbsp;</span><tt style="font-size: 13px;">pyReturn(varName)</tt><span class="Apple-converted-space">&nbsp;</span>คืนค่าตัวแปรชื่อนั้นๆ กลับ.</li><blockquote style="max-width: 65em;"><tt style="font-size: 13px;">text=pyReturn("text")</tt><span class="Apple-converted-space">&nbsp;</span>text จะได้รับค่าทั้งหมดจาก self.text.</blockquote><li>ใช้<span class="Apple-converted-space">&nbsp;</span><tt style="font-size: 13px;">pyVar('varName1,...,varNameN')</tt><span class="Apple-converted-space">&nbsp;</span>เพื่อส่งตัวแปร varName ที่มีอยู่ในแบบ python มาเป็นตัวแปรชื่อเดียวกันใน Browser.</li><li><tt style="font-size: 13px;">py('self.myString="THAIPE Prgramming is Very Easy"'); pyVar( "myString")</tt></li><li>myString ใน Browser จะมีค่า เป็น "THAIPE Prgramming is Very Easy"</li><li>ตัวอย่าง ฟังก์ชั่นเลียนแบบ<span class="Apple-converted-space">&nbsp;</span><tt style="font-size: 13px;">open()</tt><span class="Apple-converted-space">&nbsp;</span>วิธีสร้าง Object ใหม่ เพื่อติดต่อกับ Object ของ Python.</li><pre class="prettyprint" style="border-left: 3px solid rgb(204, 204, 204); padding: 0.5em; font-size: 12px; margin-left: 2em;"><span class="kwd" style="color: rgb(0, 0, 136);">function</span><span class="pln" style="color: rgb(0, 0, 0);"> fileOpen </span><span class="pun" style="color: rgb(102, 102, 0);">()</span><span class="pln" style="color: rgb(0, 0, 0);"> </span><span class="pun" style="color: rgb(102, 102, 0);">{</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136);">try</span><span class="pln" style="color: rgb(0, 0, 0);"> </span><span class="pun" style="color: rgb(102, 102, 0);">{</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">id</span><span class="pun" style="color: rgb(102, 102, 0);">=</span><span class="pln" style="color: rgb(0, 0, 0);">_newPyObj</span><span class="pun" style="color: rgb(102, 102, 0);">();</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">args</span><span class="pun" style="color: rgb(102, 102, 0);">=</span><span class="pln" style="color: rgb(0, 0, 0);">arguments</span><span class="pun" style="color: rgb(102, 102, 0);">;</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">fn</span><span class="pun" style="color: rgb(102, 102, 0);">=</span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">args</span><span class="pun" style="color: rgb(102, 102, 0);">[</span><span class="lit" style="color: rgb(0, 102, 102);">0</span><span class="pun" style="color: rgb(102, 102, 0);">];</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">mod</span><span class="pun" style="color: rgb(102, 102, 0);">=</span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">args</span><span class="pun" style="color: rgb(102, 102, 0);">[</span><span class="lit" style="color: rgb(0, 102, 102);">1</span><span class="pun" style="color: rgb(102, 102, 0);">];</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136);">if</span><span class="pln" style="color: rgb(0, 0, 0);"> </span><span class="pun" style="color: rgb(102, 102, 0);">(</span><span class="kwd" style="color: rgb(0, 0, 136);">typeof</span><span class="pln" style="color: rgb(0, 0, 0);"> </span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">mod</span><span class="pun" style="color: rgb(102, 102, 0);">==</span><span class="str" style="color: rgb(0, 136, 0);">"undefined"</span><span class="pun" style="color: rgb(102, 102, 0);">)</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">mod</span><span class="pun" style="color: rgb(102, 102, 0);">=</span><span class="str" style="color: rgb(0, 136, 0);">"r"</span><span class="pun" style="color: rgb(102, 102, 0);">;</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; py</span><span class="pun" style="color: rgb(102, 102, 0);">(</span><span class="str" style="color: rgb(0, 136, 0);">"self._objList["</span><span class="pun" style="color: rgb(102, 102, 0);">+</span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">id</span><span class="pun" style="color: rgb(102, 102, 0);">+</span><span class="str" style="color: rgb(0, 136, 0);">"] = &nbsp;open('"</span><span class="pun" style="color: rgb(102, 102, 0);">+</span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">fn</span><span class="pun" style="color: rgb(102, 102, 0);">+</span><span class="str" style="color: rgb(0, 136, 0);">"', '"</span><span class="pun" style="color: rgb(102, 102, 0);">+</span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">mod</span><span class="pun" style="color: rgb(102, 102, 0);">+</span><span class="str" style="color: rgb(0, 136, 0);">"')"</span><span class="pun" style="color: rgb(102, 102, 0);">);</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">read </span><span class="pun" style="color: rgb(102, 102, 0);">=</span><span class="kwd" style="color: rgb(0, 0, 136);">function</span><span class="pun" style="color: rgb(102, 102, 0);">()</span><span class="pln" style="color: rgb(0, 0, 0);"> </span><span class="pun" style="color: rgb(102, 102, 0);">{</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; py</span><span class="pun" style="color: rgb(102, 102, 0);">(</span><span class="str" style="color: rgb(0, 136, 0);">"self._out=self._objList["</span><span class="pun" style="color: rgb(102, 102, 0);">+</span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">id</span><span class="pun" style="color: rgb(102, 102, 0);">+</span><span class="str" style="color: rgb(0, 136, 0);">"].read()"</span><span class="pun" style="color: rgb(102, 102, 0);">);</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136);">return</span><span class="pln" style="color: rgb(0, 0, 0);"> pyReturn</span><span class="pun" style="color: rgb(102, 102, 0);">(</span><span class="str" style="color: rgb(0, 136, 0);">"_out"</span><span class="pun" style="color: rgb(102, 102, 0);">);</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="pun" style="color: rgb(102, 102, 0);">}</span><span class="pln" style="color: rgb(0, 0, 0);"><br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">readFile </span><span class="pun" style="color: rgb(102, 102, 0);">=</span><span class="kwd" style="color: rgb(0, 0, 136);">function</span><span class="pun" style="color: rgb(102, 102, 0);">()</span><span class="pln" style="color: rgb(0, 0, 0);"> </span><span class="pun" style="color: rgb(102, 102, 0);">{</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; py</span><span class="pun" style="color: rgb(102, 102, 0);">(</span><span class="str" style="color: rgb(0, 136, 0);">"self._out=self._objList["</span><span class="pun" style="color: rgb(102, 102, 0);">+</span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">id</span><span class="pun" style="color: rgb(102, 102, 0);">+</span><span class="str" style="color: rgb(0, 136, 0);">"].read()"</span><span class="pun" style="color: rgb(102, 102, 0);">);</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">close</span><span class="pun" style="color: rgb(102, 102, 0);">();</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136);">return</span><span class="pln" style="color: rgb(0, 0, 0);"> pyReturn</span><span class="pun" style="color: rgb(102, 102, 0);">(</span><span class="str" style="color: rgb(0, 136, 0);">"_out"</span><span class="pun" style="color: rgb(102, 102, 0);">);</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="pun" style="color: rgb(102, 102, 0);">}</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">write </span><span class="pun" style="color: rgb(102, 102, 0);">=</span><span class="kwd" style="color: rgb(0, 0, 136);">function</span><span class="pun" style="color: rgb(102, 102, 0);">(</span><span class="pln" style="color: rgb(0, 0, 0);">t</span><span class="pun" style="color: rgb(102, 102, 0);">)</span><span class="pln" style="color: rgb(0, 0, 0);"> </span><span class="pun" style="color: rgb(102, 102, 0);">{</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; py</span><span class="pun" style="color: rgb(102, 102, 0);">(</span><span class="str" style="color: rgb(0, 136, 0);">"self._out=self._objList["</span><span class="pun" style="color: rgb(102, 102, 0);">+</span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">id</span><span class="pun" style="color: rgb(102, 102, 0);">+</span><span class="str" style="color: rgb(0, 136, 0);">"].write(self.addslashes('"</span><span class="pun" style="color: rgb(102, 102, 0);">+</span><span class="pln" style="color: rgb(0, 0, 0);">t</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">addslashes</span><span class="pun" style="color: rgb(102, 102, 0);">()+</span><span class="str" style="color: rgb(0, 136, 0);">"'))"</span><span class="pun" style="color: rgb(102, 102, 0);">);</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="pun" style="color: rgb(102, 102, 0);">}</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">writeFile </span><span class="pun" style="color: rgb(102, 102, 0);">=</span><span class="kwd" style="color: rgb(0, 0, 136);">function</span><span class="pun" style="color: rgb(102, 102, 0);">(</span><span class="pln" style="color: rgb(0, 0, 0);">t</span><span class="pun" style="color: rgb(102, 102, 0);">)</span><span class="pln" style="color: rgb(0, 0, 0);"> </span><span class="pun" style="color: rgb(102, 102, 0);">{</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; py</span><span class="pun" style="color: rgb(102, 102, 0);">(</span><span class="str" style="color: rgb(0, 136, 0);">"self._out=self._objList["</span><span class="pun" style="color: rgb(102, 102, 0);">+</span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">id</span><span class="pun" style="color: rgb(102, 102, 0);">+</span><span class="str" style="color: rgb(0, 136, 0);">"].write(self.addslashes('"</span><span class="pun" style="color: rgb(102, 102, 0);">+</span><span class="pln" style="color: rgb(0, 0, 0);">t</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">addslashes</span><span class="pun" style="color: rgb(102, 102, 0);">()+</span><span class="str" style="color: rgb(0, 136, 0);">"'))"</span><span class="pun" style="color: rgb(102, 102, 0);">);</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">close</span><span class="pun" style="color: rgb(102, 102, 0);">();</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136);">return</span><span class="pln" style="color: rgb(0, 0, 0);"> pyReturn</span><span class="pun" style="color: rgb(102, 102, 0);">(</span><span class="str" style="color: rgb(0, 136, 0);">"_out"</span><span class="pun" style="color: rgb(102, 102, 0);">);</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="pun" style="color: rgb(102, 102, 0);">}</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">close </span><span class="pun" style="color: rgb(102, 102, 0);">=</span><span class="kwd" style="color: rgb(0, 0, 136);">function</span><span class="pun" style="color: rgb(102, 102, 0);">()</span><span class="pln" style="color: rgb(0, 0, 0);"> </span><span class="pun" style="color: rgb(102, 102, 0);">{</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; py</span><span class="pun" style="color: rgb(102, 102, 0);">(</span><span class="str" style="color: rgb(0, 136, 0);">"self._objList["</span><span class="pun" style="color: rgb(102, 102, 0);">+</span><span class="kwd" style="color: rgb(0, 0, 136);">this</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">id</span><span class="pun" style="color: rgb(102, 102, 0);">+</span><span class="str" style="color: rgb(0, 136, 0);">"].close()"</span><span class="pun" style="color: rgb(102, 102, 0);">);</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="pun" style="color: rgb(102, 102, 0);">}</span><span class="pln" style="color: rgb(0, 0, 0);"><br>&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="pun" style="color: rgb(102, 102, 0);">}</span><span class="pln" style="color: rgb(0, 0, 0);"> </span><span class="kwd" style="color: rgb(0, 0, 136);">catch</span><span class="pun" style="color: rgb(102, 102, 0);">(</span><span class="pln" style="color: rgb(0, 0, 0);">e</span><span class="pun" style="color: rgb(102, 102, 0);">){</span><span class="pln" style="color: rgb(0, 0, 0);">_ERR</span><span class="pun" style="color: rgb(102, 102, 0);">(</span><span class="pln" style="color: rgb(0, 0, 0);">e</span><span class="pun" style="color: rgb(102, 102, 0);">);};</span><span class="pln" style="color: rgb(0, 0, 0);"><br></span><span class="pun" style="color: rgb(102, 102, 0);">}</span></pre></ul><a name="head4"></a><h2>สอบถามเพิ่มเติม แนะนำ ติชม</h2>

<ul>

  <li>มีข้อสงสัย สอบถามที่ : <a href="http://forum.ubuntuclub.com/forum/board,8.0/wap2.html" target="_blank">กระดานนักพัฒนาของอูบุนตูคลับ</a> ในกระทู้ :&nbsp; <a href="http://forum.ubuntuclub.com/forum/topic,18908.0.html">เขียนโปรแกรมแบบ THAIPE เชิญร่วมกันพัฒนา</a>.<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Norasi; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span class="Apple-style-span" style="color: rgb(68, 68, 68); font-family: Verdana,Helvetica,sans-serif; font-size: 15px;"></span></span><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Norasi; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span class="Apple-style-span" style="color: rgb(68, 68, 68); font-family: Verdana,Helvetica,sans-serif; font-size: 15px;"></span></span><a href="http://forum.ubuntuclub.com/forum/topic,18556.0.html"><span style="font-weight: bold;"></span></a></li>
  
</ul>

<span style="font-weight: bold; font-style: italic;"><span style="font-weight: bold;"></span></span><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Norasi; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span class="Apple-style-span" style="font-family: monospace;"><span class="webkit-html-tag"></span> </span></span>

</body></html>
